package scenic.toolkit.db;

public class Property<T> {
	@SuppressWarnings("unused")
	private String name;
	
	public Property(String name) {
		this.name = name;
	}
	
	@SuppressWarnings("unchecked")
	public T get(Record record) {
		return (T)record.read(this);
	}

	public void set(Record record, T value) {
		record.write(this, value);
	}
}
